/* let name = 'Tom',
    course = 'woniu'
console.log(`hello ${name},my name is ${course}`)
console.log(`

  jladjflasdflaj
`) */
/* setTimeout(() =>{
  console.log(`adfasdfafda
  `)
},1000)
const double = x => x*2

console.log(double(12),`123123123`)

let obj = {
  name:'Tom',
  age:'12',
  course:'App'
}
console.log(Object.keys(obj))
console.log(Object.values(obj))
console.log(Object.entries(obj))
let name = 'imooc';
const obj2 = {
  [name]:'name',
  name,
  getName(){
    console.log(this.name)
  }  
}
obj2.getName();
console.log(obj2) */

class MyApp{
  constructor(){
    this.name='Tom'
  }
  sayHello(){
    console.log(`hello ${this.name}`)
  }
}
const myApp = new MyApp();
myApp.sayHello();